//package com.asset.salesforce.utils;
//
//import java.util.ArrayList;
//import java.util.List;
//
//import com.asset.salesforce.domain.Employee;
//import com.asset.salesforce.domain.Role;
//import com.asset.salesforce.domain.User;
//import com.asset.salesforce.service.UserShiroService;
//
//public class UserRoles {
//
//	public static List<String>getUserRoles(UserShiroService userShiroService,Employee userDetails){
//		List<User> users = userShiroService.getAllUsers(userDetails);
//		User user = users.get(0);
//		List<Role>userRoles=user.getRoles();
//		List<String>roles = new ArrayList<String>();
//		for (Role role : userRoles) {
//			roles.add(role.getName());
//		}
//		return roles;
//	}
//}
